package com.xteam.purview.entities;


import java.io.Serializable;

/**
 * 角色组织机构关系表
 * @author tangkf
 * @date 2012-01-13
 */
public class PurviewRoleOrg implements Serializable {
	private static final long serialVersionUID = 1L;


	/**
	 * 类名称
	 */
	public static final String REF="PurviewRoleOrg";

	/**
	 * 关系ID 的属性名
	 */
	public static final String PROP_ORGROLEID="orgRoleId";

	/**
	 * 组织机构ID 的属性名
	 */
	public static final String PROP_ORGID="orgId";

	/**
	 * 角色ID 的属性名
	 */
	public static final String PROP_ROLEID="roleId";

	/**
	 * 关系ID
	 */
	private java.lang.String orgRoleId;

	/**
	 * 组织机构ID
	 */
	private java.lang.String orgId;

	/**
	 * 角色ID
	 */
	private java.lang.String roleId;

	/**
	 * 获取 关系ID 的属性值
	 * @return orgRoleId : 关系ID
	 * @author tangkf
	 */
	public java.lang.String getOrgRoleId(){
		return this.orgRoleId;
	}

	/**
	 * 设置 关系ID 的属性值
	 * @param orgRoleId : 关系ID
	 * @author tangkf
	 */
	public void setOrgRoleId(java.lang.String orgRoleId){
		this.orgRoleId	= orgRoleId;
	}

	/**
	 * 获取 组织机构ID 的属性值
	 * @return orgId : 组织机构ID
	 * @author tangkf
	 */
	public java.lang.String getOrgId(){
		return this.orgId;
	}

	/**
	 * 设置 组织机构ID 的属性值
	 * @param orgId : 组织机构ID
	 * @author tangkf
	 */
	public void setOrgId(java.lang.String orgId){
		this.orgId	= orgId;
	}

	/**
	 * 获取 角色ID 的属性值
	 * @return roleId : 角色ID
	 * @author tangkf
	 */
	public java.lang.String getRoleId(){
		return this.roleId;
	}

	/**
	 * 设置 角色ID 的属性值
	 * @param roleId : 角色ID
	 * @author tangkf
	 */
	public void setRoleId(java.lang.String roleId){
		this.roleId	= roleId;
	}

	/**
	 * 转换为字符串
	 * @author tangkf
	 */
	public String toString(){
		return "{" + "orgRoleId(关系ID)=" + orgRoleId + "," +"orgId(组织机构ID)=" + orgId + "," +"roleId(角色ID)=" + roleId + "}";
	}
	/**
	 * 转换为 JSON 字符串
	 * @author tangkf
	 */
	public String toJson(){
		return "{" + "orgRoleId:'" + orgRoleId + "'," +"orgId:'" + orgId + "'," +"roleId:'" + roleId + "'}";
	}
}